sed -i 's#https://user-api.airqualitychina.cn#http://10.18.41.67:8001#g' `grep 'https://user-api.airqualitychina.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#https://logo.i2value.cn#http://10.18.41.67:8002#g' `grep 'https://logo.i2value.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#https://npm-static.oss-accelerate.aliyuncs.com#http://10.18.41.67:8003#g' `grep 'https://npm-static.oss-accelerate.aliyuncs.com' -rl ./dist/ | awk -F':' '{print $1}'`
# 替换跳转路径
sed -i 's#https://electricity-api-service-pre.airqualitychina.cn#http://10.18.41.36:9023#g' `grep 'https://electricity-api-service-pre.airqualitychina.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#https://electricity-api-service.airqualitychina.cn#http://10.18.41.36:9023#g' `grep 'https://electricity-api-service.airqualitychina.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#https://electricity-api-service.bjmemc.hotgrid.cn#http://10.18.41.36:9023#g' `grep 'https://electricity-api-service.bjmemc.hotgrid.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#https://api-file-manage-pre.airqualitychina.cn:9998#http://10.18.41.36:9016#g' `grep 'https://api-file-manage-pre.airqualitychina.cn:9998' -rl ./dist/ | awk -F':' '{print $1}'`

# 替换跳转路径
sed -i 's#https://bjmemc-electricity.airqualitychina.cn#http://10.18.41.36:9022#g' `grep 'https://bjmemc-electricity.airqualitychina.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#http://bjmemc-electricity.airqualitychina.cn#http://10.18.41.36:9022#g' `grep 'http://bjmemc-electricity.airqualitychina.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#http://bjmemc-electricity.test.hotgrid.cn#http://10.18.41.36:9022#g' `grep 'http://bjmemc-electricity.test.hotgrid.cn' -rl ./dist/ | awk -F':' '{print $1}'`
sed -i 's#http://bjmemc-electricity.bjmemc.hotgrid.cn#http://10.18.41.36:9023#g' `grep 'http://bjmemc-electricity.bjmemc.hotgrid.cn' -rl ./dist/ | awk -F':' '{print $1}'`


# 应急措施下载替换
sed -i 's#https://f.hotgrid.cn/electricity-service/应急预案管控措施文档示例-pre.xlsx/#http://10.18.41.67:8015/electricity-service/应急预案管控措施文档示例-prod.xlsx#g' `grep 'https://f.hotgrid.cn/electricity-service/应急预案管控措施文档示例-pre.xlsx' -rl ./dist/ | awk -F':' '{print $1}'`


exit 0
